home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / T U R B O Language / Turbo C Tools v6.0 / EXAMPLES / MAKTCWIN.BAT < prev    next >
DOS Batch File  |  1989-03-31  |  1KB  |  36 lines

  1. : MAKTCWIN.BAT    (C)Copyright Blaise Computing Inc. 1989
  2. :
  3. : This batch file constructs TCWIN.EXE, the executable version of the
  4. : example program TCWIN.C.
  5. :
  6. : The following assumptions are made:
  7. :
  8. :   1) The source file TCWIN.C is in the current directory.
  9. :
  10. :   2) NW_T2?.OBJ is in the \TURBOC\LIB directory, where ? is either
  11. :      S, M, C or L, depending on the memory model specified.
  12. :
  13. :   2) The command line version of Turbo C (version 1.5 or later) is
  14. :      in a directory accessible via the PATH environment variable.
  15. :
  16. :   3) All the appropriate Turbo C and Turbo C TOOLS header files
  17. :      are in \TURBOC\INCLUDE.
  18. :
  19. :   4) TCT_T2?.LIB and all the appropriate Turbo C library files
  20. :      are in \TURBOC\LIB.
  21. :
  22. : The command line format is:
  23. :
  24. :   maktcwin model
  25. :
  26. : where model is either s, m, c, or l (in lower case)
  27. :      for small, medium, compact, or large memory model.
  28. :
  29. : Method:  Because TCWIN is designed to use the Turbo C TOOLS windows
  30. :      in conjunction with the Turbo C text window, TCWIN must be linked
  31. :      with the proper NW_T2?.OBJ ("native windows") file.  The purpose
  32. :      of this batch file is to show one correct method of linking
  33. :      with NW_T2?.OBJ.
  34.  
  35. tcc -m%1 -w -O -I\turboc\include -L\turboc\lib tcwin.c \turboc\lib\nw_t2%1.obj tct_t2%1.lib
  36.